package edu.uncc.spring2013.itcs3146.group2.multics;

public class VirtualAddress extends Address {
	// 36 bits, 18 bits to address segment, 18 bits to address words in segments.
	// for simplicity I broke that into int fields
	// we can convert segment, page, word to a long address if needed to demonstrate the multics address scheme

	private int segment;
	private int page;
	private int word;

	public int getSegment() {
		return segment;
	}

	public void setSegment(int segment) {
		this.segment = segment;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getWord() {
		return word;
	}

	public void setWord(int word) {
		this.word = word;
	}

	public VirtualAddress(int segment, int page, int word) {
		this.segment = segment;
		this.page = page;
		this.word = word;
	}


}
